home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / mklib.irix6-n32 < prev    next >
Encoding:
Text File  |  1997-01-07  |  917 b   |  40 lines

  1. #!/bin/sh
  2.  
  3. # Make an n32 IRIX 6.x DSO
  4.  
  5. # $Id: mklib.irix6-n32,v 1.1 1996/09/26 22:38:49 brianp Exp $
  6.  
  7. # $Log: mklib.irix6-n32,v $
  8. # Revision 1.1  1996/09/26 22:38:49  brianp
  9. # Initial revision
  10. #
  11.  
  12.  
  13. # First argument is name of output library
  14. # Rest of arguments are object files
  15.  
  16. LIBRARY=$1
  17.  
  18. shift 1
  19. OBJECTS=$*
  20.  
  21.  
  22. # This is a bit of a kludge, but...
  23. if test ${LIBRARY} = "libMesaGL.so" ; then
  24.     # must add libXext.a to MesaGL.so in case one relinks a precompiled
  25.     # OpenGL program which wasn't linked with -lXext.
  26.     OBJECTS="${OBJECTS} -lXext"
  27. fi
  28.  
  29.  
  30. ld -n32 -shared -all -o ${LIBRARY} ${OBJECTS}
  31.  
  32.  
  33. # You may want to add the following to the ld line:
  34. #   -soname <path>$LIBNAME
  35. #
  36. # where LIBNAME=`basename $LIBRARY` and <path> is where you're going to
  37. # put Mesa's libraries.  This may solve problems with the runtime
  38. # loader/linker (rld) not being able to find the library.
  39. # For example:  -soname /usr/local/lib/$LIBNAME
  40.